<div class="wrapper-xs" ng-init="vm.init()">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">文件列表</div>
        <div class="panel-body">
            <a ng-click="vm.loadFiles()" class="btn btn-info btn-sm m-l-sm">读取文件</a>
            <a ng-click="vm.processFile()" class="btn btn-success btn-sm m-l-sm">处理文件</a>
        </div>
        <div class="table-responsive">
            <table ng-table="vm.tableParam" class="table table-condensed table-bordered table-hover table table-striped table-bordered" >
                <tbody>
                <tr ng-repeat="row in $data track by $index">
                    <td title="'ID'" sortable="'id'" align="center">{{row.id}}</td>
                    <td title="'文件名'" sortable="'fileName'" >{{row.fileName}}</td>
                    <td title="'已处理文件名'" sortable="'refFileName'" >{{row.refFileName}}</td>
                    <td title="'文件状态'" sortable="'status'">{{row.status=='N' ?'未处理':'已处理'}}</td>
                    <td title="'文件类型'" sortable="'type'">{{row.type}}</td>
                    <td title="'文件大小'" sortable="'size'">{{row.size}} bytes</td>
                    <td title="'更新时间'"  sortable="'updateTime'">{{row.updateTime|date:'yyyy-MM-dd hh:ss:mm'}}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
